#-*- coding: utf-8 -*-

a = 4
b = a
a = "dog"

print a
print b
print "這是中文!"  # 印出亂碼

animelList = [ "dog", "monkey", "pig", "cat", "beer", "fish", "bird" ]
print "The type of animelList is: " + str ( type( animelList ) )

bookMap = { 
	"Java" : 500, 
	"C#" : 750, 
	"Python" : 800, 
	"HTML5" : 250
}
print "The type of bookMap is: " + str( type( bookMap ) )

var = animelList
if var[ 2 ] == "pig":
	print "var[2] is a pig!"
else:
	print "var[2] is not a pig!"

var[ 2 ] = "big tiger"	# 改變物件內容
print "var[2] is: " + var[ 2 ]

print "The animelList is: " + str( animelList )
print "animelList[2] is: " + animelList[ 2 ]
print "The lenght of bookMap is: " + str( len( bookMap ) )

javaPrice = 0
for key in bookMap.keys():
	if key == "Java":
		javaPrice = bookMap[ key ]
		break

print "The price of Java is: " + str( javaPrice )

a = 8
b = 9

if a + b > 10 and a - b < 0:
	print "Yes, pass!"
else:
	print "No, not good!"